package com.errol.generic.file.excel.pojo;

/**
 * Created by Errol on 20/04/25.
 *
 * @author zhang xiao bin
 * @version v1.0
 * @date 2020/10/21
 * @since v4.7.6
 */
public enum ValueType {

    /**
     * java 数据类型对应的 excel 数据类型
     */
    STRING(CellType.STRING),
    INTEGER(CellType.NUMERIC),
    LONG(CellType.NUMERIC),
    BOOLEAN(CellType.NUMERIC),
    DOUBLE(CellType.NUMERIC),
    FLOAT(CellType.NUMERIC),
    ENUM(CellType.STRING),
    DATE(CellType.STRING);

    private final CellType cellType;

    ValueType(CellType cellType) {
        this.cellType = cellType;
    }

    public CellType getCellType() {
        return cellType;
    }
}